const state = {
  hiddenSidebar: false
};

const mutations = {
  SET_HIDDENSIDEBAR: (state, status) => {
    state.hiddenSidebar = status;
  }
};

const actions = {
  toggleSidebar({ commit }, status) {
    commit('SET_HIDDENSIDEBAR', status);
  }
};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
